//
//  SYContactViewController.m
//  BSHOUYIFANG
//
//  Created by lanou3g on 15/8/14.
//  Copyright (c) 2015年 CYB. All rights reserved.
//

#import "SYContactViewController.h"
#import "Header.h"
@interface SYContactViewController ()
@property(nonatomic,strong)UILabel *label;
@end

@implementation SYContactViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    [self navigationItemTitleColor];
    _label =[[UILabel alloc] initWithFrame:CGRectMake(0, 64,SCREEN_WIDTH, 100)];
    _label.text =@"   为您提供在线服务,远程服务,加入我们吧！\n   QQ群号:421467730 \n   微信号：350862246";
    _label.numberOfLines = 0;
    _label.textAlignment = NSTextAlignmentLeft;
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:_label];
    UIButton*leftButton = [[UIButton alloc]initWithFrame:CGRectMake(0,0,30*0.6,30*0.6)];
    [leftButton setImage:[UIImage imageNamed:@"iconfont-fanhui"]forState:UIControlStateNormal];
    [leftButton addTarget:self action:@selector(searchprogram) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem*leftItem = [[UIBarButtonItem alloc]initWithCustomView:leftButton];
    self.navigationItem.leftBarButtonItem= leftItem;
    
    // Do any additional setup after loading the view.
}

- (void)searchprogram{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)navigationItemTitleColor
{
    UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
    [customLab setTextColor:[UIColor whiteColor]];
    [customLab setText:@"联系我们"];
    customLab.textAlignment = NSTextAlignmentCenter;
    customLab.font = [UIFont boldSystemFontOfSize:20];
    self.navigationItem.titleView = customLab;
}


- (void)viewWillAppear:(BOOL)animated{
    self.tabBarController.tabBar.translucent = NO;
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated{
    self.tabBarController.tabBar.translucent = YES;
    self.tabBarController.tabBar.hidden = NO;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
